package gui.commons;

import java.awt.Dimension;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import javax.imageio.ImageIO;

public class Resources {


	public static Image playIcon; 
	public static Image nextIcon; 
	public static Image controlIcon;
	public static Image pauseIcon;
	public static Image stopIcon;
	public static Image delIcon;
	public static Image background;
	public static Image userBan;
	public static Image mediaBan;
	public static Image paramIcon;
	
	public static Image volMin;
	public static Image volPlus;
	public static Image fast;
	public static Image slow;
	public static Image minus600;
	public static Image minus30;
	public static Image plus30;
	public static Image plus600;
	public static Image previous;
	public static Image next;
	public static Image onoff;
	
	public static void init(){
		new Resources();
	}
	
	private Resources(){
		try {
			Image img;
			Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
			img  = ImageIO.read(new File(this.getClass().getResource("/play.png").toURI()));
			playIcon = img.getScaledInstance((int) (dim.height*0.1),(int) (dim.height*0.1),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/next.png").toURI()));
			nextIcon = img.getScaledInstance((int) (dim.height*0.1),(int) (dim.height*0.1),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls.png").toURI()));
			controlIcon = img.getScaledInstance((int) (dim.height*0.1),(int) (dim.height*0.1),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/pause.png").toURI()));
			pauseIcon = img.getScaledInstance((int) (dim.height*0.1),(int) (dim.height*0.1),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/stop.png").toURI()));
			stopIcon = img.getScaledInstance((int) (dim.height*0.1),(int) (dim.height*0.1),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/delIcon.png").toURI()));
			delIcon = img.getScaledInstance((int) (dim.width*0.04),(int) (dim.width*0.04),  java.awt.Image.SCALE_SMOOTH);
			img = ImageIO.read(new File(this.getClass().getResource("/userBan.png").toURI()));
			userBan = img.getScaledInstance((int) (dim.width*0.22),(int) (dim.width*0.04),  java.awt.Image.SCALE_SMOOTH);
			img = ImageIO.read(new File(this.getClass().getResource("/mediaBan.png").toURI()));
			mediaBan = img.getScaledInstance((int) (dim.width*0.27),(int) (dim.height*0.04),  java.awt.Image.SCALE_SMOOTH);
			img = ImageIO.read(new File(this.getClass().getResource("/background.png").toURI()));
			background = img.getScaledInstance((int) (dim.width),(int) (dim.height),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/param.png").toURI()));
			paramIcon = img.getScaledInstance((int) (dim.height*0.05),(int) (dim.height*0.05),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/volume_minus.png").toURI()));
			volMin = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/volume_plus.png").toURI()));
			volPlus = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/fast.png").toURI()));
			fast = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/slow.png").toURI()));
			slow = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/minus_600.png").toURI()));
			minus600 = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/minus_30.png").toURI()));
			minus30 = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/plus_30.png").toURI()));
			plus30 = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/plus_600.png").toURI()));
			plus600 = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/previous.png").toURI()));
			previous = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/next.png").toURI()));
			next = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
			img  = ImageIO.read(new File(this.getClass().getResource("/controls/on_off.png").toURI()));
			onoff = img.getScaledInstance((int) (dim.height*0.03),(int) (dim.height*0.03),  java.awt.Image.SCALE_SMOOTH);
		} catch (IOException e) {
		} catch (URISyntaxException e) {
		}

	}
}
